<%@ page import="entity.hotel_tenant" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: a3502
  Date: 2022/4/27
  Time: 21:50
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>顾客信息查询</title>
    <link rel="stylesheet" href="/hotelSystem/layui/css/layui.css"  media="all">
</head>
<body>
<%
List<hotel_tenant> tenantList = (ArrayList)request.getAttribute("tenantList");
if(tenantList==null){
%>
<h3>订单信息获取失败!!!!!</h3>
    if(orderList==null){
<%
    }else {
%>
<table class="layui-table">
    <colgroup>
        <col width="150">
        <col width="150">
        <col width="200">
        <col>
    </colgroup>
    <thead>
    <tr>
        <th>客人姓名</th>
        <th>客人性别</th>
        <th>客人身份证号</th>
        <th>客人电话</th>
        <th>入住房间号</th>
    </tr>
    </thead>
    <tbody>
    <%
        for(hotel_tenant hotel_tenant:tenantList){
    %>
    <tr>
        <th><%=hotel_tenant.getTenant_name() %></th>
        <th><%=hotel_tenant.getTenant_sex().equals("0")?"女":"男"%></th>
        <th><%=hotel_tenant.getTenant_id()%></th>
        <th><%=hotel_tenant.getTenant_tel()%></th>
        <th><%=hotel_tenant.getRoom_no()%></th>
    </tr>
    <%
        }
    %>
    </tbody>
</table>
<%
    }
%>
<script src="/hotelSystem/layui/layui.js" charset="utf-8"></script>
</body>
</html>
